package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;
import org.apache.ibatis.annotations.Mapper;

public interface DishService extends IService<Dish> {
    void saveWithFlavor(DishDto dishDto);

    Page<DishDto> pageByName(int page, int pageSize, String name);

    public DishDto getByIdWithFlavor(Long id);

    public void updateByIdWithFlavor(DishDto dto);
}
